<?php

class InfoModel extends Model {

	public function getlist($tuijian=false, $limit=1 )
	{
		//获取分类
		$M = M('Info');
		$map=array('status'=>1);
		//if($tuijian) $map[] = array('recommend'=>1);
		$ord=array('create_time'=>'desc');
		return $M->where($map)->order('ord')->limit($limit)->select();
	}




}

